const imagesUrl = [
  'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577963426358&di=290e4a9d420e7c47e7f7cff712640b9c&imgtype=0&src=http%3A%2F%2Fpic.90sjimg.com%2Fdesign%2F01%2F50%2F42%2F53%2F59155b9f14c05.png',
  'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577963932048&di=c1f6d9fc1e767ca13af9f4521ddba5ea&imgtype=0&src=http%3A%2F%2Fimages.669pic.com%2Felement_pic%2F67%2F51%2F73%2F12%2F70fb561ac1ecd49886ea471fb2657bef.jpg%2521w700wb',
  'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577964060252&di=29d6746c02c4675f5fcff0e7278dee86&imgtype=0&src=http%3A%2F%2Fpic.qiantucdn.com%2F58pic%2F17%2F91%2F78%2F62E58PIChR3_1024.jpg'
]

const tenancyGroups = [
  {
    title: '上海租房',
    desc: '上海租房子的简介',
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577964060252&di=29d6746c02c4675f5fcff0e7278dee86&imgtype=0&src=http%3A%2F%2Fpic.qiantucdn.com%2F58pic%2F17%2F91%2F78%2F62E58PIChR3_1024.jpg'
  },
  {
    title: '北京租房',
    desc: '北京租房子的简介',
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg'
  },
  {
    title: '杭州租房',
    desc: '杭州租房子的简介',
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg'
  },
  {
    title: '外国租房',
    desc: '外国租房子的简介',
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg'
  }
]

const news = [
  {
    id: 1,
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg',
    from: '上海',
    title: '这里是关于上海的资讯',
    date: '2020年1月2日'
  },
  {
    id: 2,
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg',
    from: '上海',
    title: '这里是关于上海的资讯',
    date: '2020年1月2日'
  },
  {
    id: 3,
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg',
    from: '上海',
    title: '这里是关于上海的资讯',
    date: '2020年1月5日'
  },
  {
    id: 4,
    imgSrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578300281277&di=377a60b9b908727f94fc376a04791c7b&imgtype=0&src=http%3A%2F%2F58pic.ooopic.com%2F58pic%2F18%2F65%2F67%2F05558PIChfk.jpg',
    from: '上海',
    title: '这里是关于上海的资讯',
    date: '2020年1月6日'
  },
]
export default [
  // get swiper images url
  {
    url: '/home/swiper',
    type: 'get',
    response: () => {
      return {
        images_url: imagesUrl
      }
    }
  },

  // get tenancy info
  {
    url: '/home/tenancy-groups',
    type: 'get',
    response: () => {
      return {
        tenancyGroups
      }
    }
  },

  // get news
  {
    url: '/home/news',
    type: 'get',
    response: () => {
      return {
        news
      }
    }
  }
]
